<?php
$isReloadable = true;
$isPopUp=true;
require_once("../../pers/inc.config.php");
require_once(R2_FS_WEB_ROOT.'/app/_inc/inc.session.php');
require_once(R2_FS_WEB_ROOT.'/app/_inc/funct.html.php');

// Dati Rint
$selLog = " SELECT * FROM rint_log_stima WHERE id_rint = ".reqVar('id').
          " ORDER BY data_ora_mod_stima desc";
$objDB->query($selLog,'selLog');

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta Name="expires" CONTENT= "Mon, 1 Jan 2000 00:00:00 GMT">
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<meta HTTP-EQUIV="content-language" content="it">
<meta HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
<!-- link rel="shortcut icon" href='../_img/rint2.ico"?>' type="image/x-icon" -->
<link rel="stylesheet" href="<?=R2_URL_ROOT?>/app/_com/css.stilePar.php?cs=<?=$coloreSfondo?>&ct=<?=$coloreTesto?>" type="text/css">
<title>Log modifiche stima</title>
</head>
<body style='font-family:arial;margin:5;'>
<table class="tab1" border="0" cellpadding="3" cellspacing="1" width="100%" align='center'>
	<tr>
		<td colspan='5' align="right" class="cmd1"><a class='cmd1' href="#" onclick='window.close();'>chiudi</a></td>
	</tr>
	<tr>
		<td class='lab1' width='30%'>Data-ora modifica</td>
		<td class='lab1' width='20%'>Utente</td>
		<td class='lab1' width='20%'>Attivita'</td>
		<td class='lab1' width='15%'>Stima prec.</td>
		<td class='lab1' width='15%'>Stima mod.</td>		
	</tr>
<?  while ($acLog = $objDB->fetch('selLog')) { ?>
		<tr>
			<td class='txt1'>
			<?
				$expl = explode(" ", $acLog['data_ora_mod_stima']);
				$data = trim ($expl[0]);
				$ora  = trim ($expl[1]);
				
				$ex = explode("-", $data);

				echo $ex[2]."/".$ex[1]."/".$ex[0]." - ".$ora;				
			?>			
			</td>
			<td class='txt1'><?=$aUtentiRint[$acLog['id_utente']]['nome']?></td>
			<td class='txt1'><?=$aTipiAttRint[$acLog['tipo_att']]['des']?></td>
			<td class='txt1'><?=$acLog['stima_precedente']?></td>			
			<td class='txt1'><?=$acLog['stima_modificata']?></td>			
		</tr>
<?	} ?>
	<tr>
		<td colspan='5' align="right" class="cmd1"><a class='cmd1' href="#" onclick='window.close();'>chiudi</a></td>
	</tr>
</table>
</body>